//
//  MYSelectBulletCollectionViewCell.m
//  JQLive
//
//  Created by cheng on 2020/6/17.
//  Copyright © 2020 JQLive. All rights reserved.
//

#import "MYSelectBulletCollectionViewCell.h"

@implementation MYSelectBulletCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self)
    {
        self.contentView.backgroundColor = [UIColor whiteColor];
        
        _btn = [UIButton buttonWithType:UIButtonTypeCustom];
        [_btn setTitleColor:MY_Text_Color_Theme1 forState:UIControlStateNormal];
        _btn.titleLabel.font = [UIFont systemFontOfSize:10];
        [_btn edgeInsetsImageTopWith:10];
        [self.contentView addSubview:_btn];
    }
    return self;
}

- (void)updateContent:(id)data
{
    NSDictionary *dict = data;
    
    [_btn setTitle:dict[@"title"] forState:UIControlStateNormal];
    [_btn setImage:[UIImage imageNamed:dict[@"icon"]] forState:UIControlStateNormal];
}

@end
